<template>
  <div id="app">
    <a-layout>
      <a-layout-header class="header">
        <div class="logo">理财产品管理台</div>
        <div class="nav-menu">
          <router-link to="/productList" class="nav-item">产品列表</router-link>
          <router-link to="/config-version" class="nav-item">配置版本</router-link>
        </div>
      </a-layout-header>
      <a-layout-content style="min-height:calc(100vh - 64px);">
        <router-view />
      </a-layout-content>
    </a-layout>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style lang="less">
#app {
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.logo {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  margin-right: 48px;
}

.nav-menu {
  display: flex;
  height: 100%;
}

.nav-item {
  padding: 0 20px;
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 64px;
  transition: all 0.3s;
  text-decoration: none;
  
  &:hover, &.router-link-active {
    color: #fff;
    background-color: #1890ff;
  }
}
</style> 